package cn.ywsj.ywsjmidtier.service;

import cn.ywsj.ywsjmidtier.common.Connect;
import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Api(tags = "发票")
@FeignClient(url = Connect.XSX_URL,name = "xsx")
public interface WechatInvoiceFeign {

    /**
     * 开票维护列表
     * @param jsonObject
     * @param start
     * @param pageSize
     * @return
     */
    @ApiOperation("开票维护列表")
    @PostMapping("/wechat/member/invoicemgr/ajaxinvoicerecordpages")
    //@RequestMapping(value ="/wechat/member/invoicemgr/ajaxinvoicerecordpages",method = RequestMethod.POST,headers = {MediaType.APPLICATION_FORM_URLENCODED_VALUE,"Cookie = JSESSIONID=7812A97B3223916144CC18801B0E378A"})
    String ajaxinvoicerecordpages(@RequestParam("jsonObject") JSONObject jsonObject, @RequestParam("start") Integer start, @RequestParam("pageSize") Integer pageSize);

    /**
     * 开票维护修改
     * @param jsonObject
     * @return
     */
    @ApiOperation("开票维护修改")
    @PostMapping("/wechat/member/invoicemgr/updateinvoicerecord")
    String updateinvoicerecord(@RequestParam("jsonObject") JSONObject jsonObject);

    /**
     * 新增发票模板
     * @param jsonObject
     * @return
     */
    @ApiOperation("新增发票模板")
    @PostMapping("/wechat/member/invoicemgr/insertinvoicerecord")
    String insertinvoicerecord(@RequestParam("jsonObject") JSONObject jsonObject);

    /**
     * 删除发票
     * @param jsonObject
     * @return
     */
    @ApiOperation("删除发票")
    @PostMapping("/wechat/member/invoicemgr/delnvoicerecord")
    String delnvoicerecord(@RequestParam("jsonObject") JSONObject jsonObject);
}
